package com.design.pattern.ChainResponsibility;

/**
 * @Projectname: Design-pattern
 * @Filename: Handler
 * @Author: FANSEA
 * @Date:2024/11/7 22:28
 */
public abstract class Handler<T> {
    protected Handler<T> next;
    public abstract void handle(T t);
    public void setNext(Handler<T> next) {
        this.next = next;
    }
}
